Add HiFi int8/int32 optimized paths for LeakyRelu, Pad, and SVDF on Xtensa - #3644
Draft
unmeshna017 wants to merge 3 commits into
Draft
Add HiFi int8/int32 optimized paths for LeakyRelu, Pad, and SVDF on Xtensa#3644unmeshna017 wants to merge 3 commits into
unmeshna017 wants to merge 3 commits into
Conversation
Add an int8 (asym8s) accelerated path using xa_nn_vec_leaky_relu_asym8s_asym8s for HIFI3/HIFI4/HIFI5/HIFI_IQ targets, mirroring the existing int16 optimized path. Falls back to the reference QuantizeLeakyRelu on other targets.
Add int8 (xa_nn_pad_8_8) and int32 (xa_nn_pad_32_32) accelerated Pad paths for HIFI targets, complementing the existing int16 path. Inputs with more than 4 dimensions fall back to reference_ops. The int32 path is gated on HIFI3/HIFI4/HIFI5.
Extend existing HIFI kernel guards to include HIFI_IQ so the optimized SVDF paths are compiled for the HIFI_IQ target. No functional change on other targets.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable HiFi-accelerated kernels for three Xtensa ops
Adding @cad-audio and @joshih-cad for review.